expander: Use gtk_widget_measure
authorTimm Bäder <mail@baedert.org>
Sat, 18 Feb 2017 10:10:16 +0000 (11:10 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 18 Feb 2017 18:01:28 +0000 (19:01 +0100)
gtk/gtkexpander.c

index 45286a19ca48250ccfb2dce6b9ef2716c2f81fae..b786d6f47127d9675d785aa6dbe4b4f932de35e9 100644 (file)
@@ -934,7 +934,8 @@ gtk_expander_resize_toplevel (GtkExpander *expander)
             {
               GtkRequisition child_requisition;
 
-              gtk_widget_get_preferred_height_for_width (child, child_allocation.width, &child_requisition.height, NULL);
+              gtk_widget_measure (child, GTK_ORIENTATION_VERTICAL, child_allocation.width,
+                                  &child_requisition.height, NULL, NULL, NULL);
 
               toplevel_allocation.height += child_requisition.height;
             }